import request from '@/utils/request'

// 查询多时段分析记录列表
export function listDispatchMultiPeriodAnalysisRecords(query) {
  return request({
    url: '/system/dispatchMultiPeriodAnalysisRecords/list',
    method: 'get',
    params: query
  })
}

// 查询多时段分析记录详细
export function getDispatchMultiPeriodAnalysisRecords(multiPeriodAnalysisRecordsId) {
  return request({
    url: '/system/dispatchMultiPeriodAnalysisRecords/' + multiPeriodAnalysisRecordsId,
    method: 'get'
  })
}

// 新增多时段分析记录
export function addDispatchMultiPeriodAnalysisRecords(data) {
  return request({
    url: '/system/dispatchMultiPeriodAnalysisRecords',
    method: 'post',
    data: data
  })
}

// 修改多时段分析记录
export function updateDispatchMultiPeriodAnalysisRecords(data) {
  return request({
    url: '/system/dispatchMultiPeriodAnalysisRecords',
    method: 'put',
    data: data
  })
}

// 删除多时段分析记录
export function delDispatchMultiPeriodAnalysisRecords(multiPeriodAnalysisRecordsId) {
  return request({
    url: '/system/dispatchMultiPeriodAnalysisRecords/' + multiPeriodAnalysisRecordsId,
    method: 'delete'
  })
}
